/* Copyright (C) 2015 The Android Open Source Project

  This software is licensed under the terms of the GNU General Public
  License version 2, as published by the Free Software Foundation, and
  may be copied, distributed, and modified under those terms.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
 */

*[ColorGroup="MajorTab"] {
    color: %%MAJOR_TAB_COLOR%%;
    padding: 0px 0px 0px 16px;
}
*[ColorGroup="MajorTabTitle"] {
    color: %%MAJOR_TITLE_COLOR%%;
    background-color: %%TAB_BKG_COLOR%%
}

*[ColorGroup="Link"] {
    color: %%LINK_COLOR%%;
}

*[ColorGroup="Title"] {
    color: %%TITLE_COLOR%%;
}
*[ColorGroup="Instruction"] {
    color: %%INSTRUCTION_COLOR%%;
}
*::disabled[ColorGroup="Button"] { color: %%DISABLED_BUTTON_COLOR%%; background: %%BUTTON_BKG_COLOR%% }
*[ColorGroup="Button"] { color: %%BUTTON_COLOR%%; background: %%BUTTON_BKG_COLOR%% }

*::disabled[ColorGroup="Tool"] { color: %%DISABLED_TOOL_COLOR%%}
*[ColorGroup="Tool"] { color: %%TOOL_COLOR%%}
*[class="EditableValue"]  { color: %%TEXT_COLOR%% }
*[ColorGroup="SliderLabel"]  { color: %%TEXT_COLOR%% }
*[ColorGroup="SmsBox"] { border: 1px solid %%BOX_COLOR%% }
*[ColorGroup="HorizDivider"] {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0  %%LARGE_DIVIDER_COLOR%%, stop: 1 %%TAB_SELECTED_COLOR%%);
    border: 0px;
}
*[ColorGroup="HorizDivider2"] { color: %%TITLE_COLOR%% }
*[ColorGroup="GradientDivider"] {
    background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 %%LARGE_DIVIDER_COLOR%%, stop: 1 rgba(0, 0, 0, 0));
    border: 0px;
}
*[ColorGroup="Overlay"] {
    background: %%BKG_COLOR_OVERLAY%%;
}
*[ColorGroup="Inactive"] {
    color: %%INACTIVE_TEXT_COLOR%%;
}
*[ColorGroup="SnapshotInfo"] {
    background: %%SNAPSHOT_INFO_BKG%%;
    border: 1px solid %%TREE_WIDGET_BORDER%%;
}
/*VhalTableSearchFrame and VhalTablePropertyFrame are used in VhalTable, their boder color always same as LIST_WIDGET_BORDER*/
*[ColorGroup="VhalTableSearchFrame"] {
    border: 1px solid %%LIST_WIDGET_BORDER%%;
}
*[ColorGroup="VhalTablePropertyFrame"] {
    border: 1px solid %%LIST_WIDGET_BORDER%%;
    background: %%VHAL_PROPERTY_BKG%%;
}
*[ColorGroup="Countdown"] {
    color: #CA4644;
}
*[ColorGroup="RoutePlaybackTitleItem"] {
    background-color: %%MACRO_BKG_COLOR%%;
    border: 1px solid %%LIST_WIDGET_BORDER%%;
}
*{
    color: %%TEXT_COLOR%%;
    background-color: %%BKG_COLOR%%;
}
QListWidget {
    border: 1px solid %%LIST_WIDGET_BORDER%%;
}
QListWidget::item {
    border-bottom: 1px solid %%LIST_WIDGET_BORDER%%;
}
QListWidget::item:focus {
    border: 2px solid %%LIST_WIDGET_BORDER%%;
}
QListWidget::item:!selected {
    background-color: transparent;
}
QListWidget::item:selected {
    border-bottom: 1px solid %%LIST_WIDGET_BORDER%%;
    background-color: #4285F4;
}

QListWidget QLabel, QWidget QLabel {
    background-color: transparent;
}
QListWidget QLabel:disabled {
    color:gray;
}
QListWidget QPushButton {
    background: none;
    border: none;
}
QListWidget[ColorGroup="MultiDisplay"] {
    border: none;
}
QListWidget::item[ColorGroup="MultiDisplay"] {
    border: none;
}
QListWidget::item:focus[ColorGroup="MultiDisplay"], QListWidget::item:selected[ColorGroup="MultiDisplay"] {
    border: none;
    background-color: %%BKG_COLOR%%;
}
QGroupBox::title { margin-top: 4px; margin-left: 0px; padding-left: 0px; }
QTextEdit:disabled, QLineEdit:disabled { border: 0px }
QTextEdit, QLineEdit {
    border-top: 0px;
    border-bottom: 1px solid %%EDIT_COLOR%%;
}
QLineEdit:focus {
    border-bottom: 2px solid %%TOOL_COLOR%%;
}
QPlainTextEdit:disabled, QPlainTextEdit[readOnly=true] {
    border: 0px;
    background: transparent
}
QPlainTextEdit {
    background: %%TAB_BKG_COLOR%%;
    border: 1px solid %%EDIT_COLOR%%;
}
QCheckBox::indicator:checked[ColorGroup="Toggle"] {
    image: url(:/%%PATH%%/toggle_on);
    width: 36; height: 24;
}
QCheckBox::indicator:unchecked[ColorGroup="Toggle"] {
    image: url(:/%%PATH%%/toggle_off);
    width: 36; height: 24;
}
QCheckBox::indicator:checked:disabled[ColorGroup="Toggle"] {
    image: url(:/%%PATH%%/toggle_on_disabled);
    width: 36; height: 24;
}
QCheckBox::indicator:unchecked:disabled[ColorGroup="Toggle"] {
    image: url(:/%%PATH%%/toggle_off_disabled);
    width: 36; height: 24;
}
QCheckBox::indicator:checked {
    image: url(:/%%PATH%%/check_yes)
}
QCheckBox::indicator:unchecked {
    image: url(:/%%PATH%%/check_no)
}
QCheckBox::indicator:checked:disabled {
    image: url(:/%%PATH%%/check_yes_disabled)
}
QCheckBox::indicator:unchecked:disabled {
    image: url(:/%%PATH%%/check_no_disabled)
}
QPushButton:pressed[ToolWindowButton=true], QPushButton:checked[ToolWindowButton=true] {
    border: none;
    background: %%TOOL_ON_COLOR%%;
    border-radius: 4px;
}
QPushButton:pressed[helpButton=true] {
    border: none;
    background: %%TAB_DARKENED_COLOR%%;
}
QTreeWidget {
    border: 1px solid %%TREE_WIDGET_BORDER%%;
    background: %%TREE_WIDGET_BKG%%;
}
QTreeWidget::item {
    height: 28px;
}
QGraphicsView {
    background: %%PREVIEW_IMAGE_BKG%%;
}
QWidget[ColorGroup="MajorTab"] {
    border: none;
    background: %%TAB_BKG_COLOR%%;
}
QPushButton[ColorGroup="MajorTab"] {
    border: none;
    text-align: left;
    color: %%MAJOR_TAB_COLOR%%;
    background: %%TAB_BKG_COLOR%%;
    padding: 10px 0px 10px 16px;
}
QPushButton[ColorGroup="MajorTabTitle"] {
    border: none;
    text-align: left;
    color: %%MAJOR_TAB_COLOR%%;
    background: %%TAB_BKG_COLOR%%;
}
QPushButton:pressed[ColorGroup="MajorTab"] {
    border: none;
    background: %%TAB_DARKENED_COLOR%%;
}
QPushButton:checked[ColorGroup="MajorTab"] {
    border: none;
    background: %%TAB_SELECTED_COLOR%%;
}
QPushButton:pressed[ColorGroup="Button"] {
    border: none;
}
QRadioButton::indicator:unchecked {
    image: url(:/%%PATH%%/radio_off);
    width: 24; height: 24;
}
QRadioButton::indicator:checked {
    image: url(:/%%PATH%%/radio_on);
    width: 24; height: 24;
}
QRadioButton::indicator:unchecked:disabled {
    image: url(:/%%PATH%%/radio_off_disabled);
    width: 24; height: 24;
}
QRadioButton::indicator:checked:disabled {
    image: url(:/%%PATH%%/radio_on_disabled);
    width: 24; height: 24;
}
QSlider::groove {border: 1px ;height: 2px;}
QSlider::handle {
    background: solid %%TOOL_COLOR%%;
    border: 1px solid %%TOOL_COLOR%%;
    width: 12px;
    margin: -6px 0;
    border-radius: 7px;
}
QSlider::sub-page:horizontal {
    background: %%TOOL_COLOR%%;
    border-radius: 1px;
}
QSlider::add-page:horizontal {
    background: %%BOX_COLOR%%;
    border-radius: 1px;
}
QTextBrowser, QTableWidget {
    gridline-color: %%TAB_BKG_COLOR%%;
    background: %%TAB_BKG_COLOR%%;
    border: 1px solid %%EDIT_COLOR%%;
    alternate-background-color: %%BKG_COLOR%%;
    selection-background-color: %%TABLE_SELECTED%%;
}
QTableView::item {
    padding-left: 16;
    padding-right: 16;
    border: 0;
    border-bottom: 1 solid %%TABLE_BOTTOM_COLOR%%;
}
QTableView::item:focus{}
QHeaderView::section {
    color: %%TITLE_COLOR%%;
    background: %%TAB_BKG_COLOR%%;
    border: 0px; padding: 16;
    border-bottom: 1 solid %%DIVIDER_COLOR%%;
}
QScrollBar::vertical {
    background: %%SCROLL_BKG_COLOR%%;
    width: 8px;
    margin 21px 0 21 px 0;
}
QScrollBar::handle:vertical {
    background: %%SCROLL_HANDLE_COLOR%%;
    min-height: 25px;
}
QScrollBar::add-line:vertical { border: none; background: none }
QScrollBar::sub-line:vertical { border: none; background: none }
QComboBox {
    border-top: 0px;
    border-bottom: 1px solid %%BOX_COLOR%%;
    selection-background-color: %%TAB_BKG_COLOR%%;
}
QComboBox:disabled {
    color: %%DISABLED_PULLDOWN_COLOR%%;
    border-top: 0px;
    border-bottom: 1px solid %%BOX_COLOR%%;
    selection-background-color: %%TAB_BKG_COLOR%%;
}
QComboBox::drop-down { border-left-style: solid; }
QComboBox::down-arrow {
    image:url(:/%%PATH%%/drop_down);
    border: none;
    width: 24;
    height: 24;
}
QListView { min-height: 4em }
QTabWidget::pane {border: none;}
QTabWidget::tab-bar {left: 0px;}
QTabBar::tab {
    background: %%BKG_COLOR%%;
    padding-bottom:8px;
    text-align: left;
    margin-left: 8
}
QTabBar::tab:selected {
    color: %%TEXT_COLOR%%;
    border-bottom: 2px solid %%TOOL_COLOR%%;
}
QTabBar::tab:!selected{
    color: %%TITLE_COLOR%%;
    border-bottom: 2px solid %%BKG_COLOR%%;
}
QTabBar::tab:disabled {
    color: %%TITLE_COLOR%%;
    border-bottom: 2px solid %%BKG_COLOR%%;
}
QTabBar[ColorGroup="NoHiddenTabOnDisabled"]::tab:disabled {
    color: %%DISABLED_TITLE_COLOR%%;
    border-bottom: 2px solid %%DISABLED_BKG_COLOR%%;
}
RaisedMaterialButton {
    border-radius: 2px;
    color: %%BUTTON_COLOR%%;
}
RaisedMaterialButton:pressed {
    background: %%TAB_DARKENED_COLOR%%;
}
RaisedMaterialButton[ColorGroup="RaisedColoredButton"] {
    padding: 0 16px;
    color: %%RAISED_COLORED_COLOR%%;
    background: %%RAISED_COLORED_BKG_COLOR%%
}
RaisedMaterialButton[ColorGroup="RaisedColoredButton"]:pressed {
    background: %%RAISED_COLORED_PRESSED_COLOR%%
}
QAbstractSpinBox {
    border-top: 0px;
    border-bottom: 1px solid %%EDIT_COLOR%%;
    padding-bottom: 4;
}
QAbstractSpinBox:focus {
    border-top: 0px;
    border-bottom: 2px solid %%TOOL_COLOR%%;
}
QAbstractSpinBox:up-button {
    border-image: url(:/%%PATH%%/arrow_drop_up);
    width: 12;
}
QAbstractSpinBox:down-button {
    border-image: url(:/%%PATH%%/arrow_drop_down);
    width: 12;
}
QLineEdit[ColorGroup="InvalidInput"] {
    color: #ff0000;
}
QToolTip {
    background-color: #ffffff;
    color: #000000;
}

#DropTarget {
    background-color: %%DROP_TARGET_BKG_COLOR%%;
    border-style: solid;
    border-width: 2px;
    border-color: %%TOOL_COLOR%%;
}
QComboBox[ColorGroup="focused"] {
  border-bottom: 2px solid %%TOOL_COLOR%%;
}
